package com.rsk.dao.info;


import java.io.Serializable;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.rsk.entity.info.RskInfoTab;



@Repository
public interface RskInfoTabRepository extends JpaRepository<RskInfoTab, Long>,JpaSpecificationExecutor<RskInfoTab>,Serializable {
	
	@Modifying
	@Query(value = "update rsk_info_tab set is_del = 1, operator_user =?2, operator_time = NOW() where id =?1", nativeQuery = true)
	public int delInfoTab(Long id, Long operatorUser);
	
	@Modifying
	@Query(value = "update rsk_info_tab set label_name = ?2, label_remarks = ?3, operator_user =?4, operator_time = NOW() where id =?1", nativeQuery = true)
	public int updateInfoTab(Long id, String labelName, String labelRemarks, Long operatorUser);
	
}
 